package com.hzy.alibaba.service.impl;

import com.hzy.alibaba.dao.salve.SalveUserDao;
import com.hzy.alibaba.entity.salve.SalveUser;
import com.hzy.alibaba.service.SalveUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SalveUserServiceImpl implements SalveUserService {
    @Autowired
    private SalveUserDao salveUserDao;
    @Override
    public SalveUser findUserByUserName(String userName) {
        return salveUserDao.getUserByUserName(userName);
    }

    @Override
    public void save(SalveUser user) {
        salveUserDao.save(user);
    }
}


